package com.ctgu.server.dao.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "GroupUserDto", description = "登录请求参数")
public class GroupUserDto {
    @ApiModelProperty(value = "组织表主键")
    @NotNull(message = "组织成员信息不能为空")
    private String groupId;

    @ApiModelProperty(value = "用户主键")
    @NotEmpty(message = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户主键")
    @NotEmpty(message = "操作用户户ID")
    private String opId;

    @ApiModelProperty(value = "用户在组织中的角色")
    private String groupRoleId;

    @ApiModelProperty(value = "是否是管理员")
    private Boolean isAdmin;
}
